<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ShopCar extends Model
{
    protected $table = "shop_car";
    protected $guarded = [];

    public function goods(){
        return $this->belongsTo(Goods::class,"goods_id","id");
    }

    public function goodsSku(){
        return $this->belongsTo(GoodsSku::class,"sku_id","id");
    }

    public function goodsColor(){
        return $this->belongsTo(GoodsColor::class,"color_id","id");
    }
}
